﻿using SD.TeachSystem.Common;
using SD.TeachSystem.EntityFrameworkCore;
using SD.TeachSystem.EntityFrameworkCore.Model;

namespace SD.TeachSystem.IService
{
    public interface IDemoService
    {
        /// <summary>
        /// 新增数据
        /// </summary>
        /// <param name="demo"></param>
        /// <returns></returns>
        bool AddDemoInfo(Demo demo);
        /// <summary>
        /// 删除数据
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        bool DelDemoInfo(Guid id);
        /// <summary>
        /// 修改数据
        /// </summary>
        /// <param name="demo"></param>
        /// <returns></returns>
        bool UpdateDemoInfo(Demo demo);
        /// <summary>
        /// 分页查询数据
        /// </summary>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        List<Demo> QueryDemoList(int pageIndex,int pageSize);
    }
}
